package com.snoweagle.controller;

import com.snoweagle.core.OperationLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.math.BigDecimal;

@RestController
@RequestMapping("/user")
public class LogController {

    @GetMapping
    @OperationLog(operate = "调用hello 方法")
    public String hello(String name, HttpSession session){
        session.setAttribute("user",name);
        return name;
    }

}
